package com.zly.entity.block;

import com.fasterxml.jackson.databind.JsonNode;
import com.zly.entity.enums.BlockType;

public class WhenBlock extends DynamicBlock {

    //用于验证when的条件
    private final String condExpr;

    //构造
    public WhenBlock(BlockType blockType, JsonNode contentNode, String condExpr) {
        super(blockType, contentNode);
        this.condExpr = condExpr;
    }

    public String getCondExpr() {
        return this.condExpr;
    }

}
